<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/pageRc/common/common.jsp"%>

<!DOCTYPE html>
<html lang="en" style="overflow-x: hidden">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="msapplication-tap-highlight" content="no">

<link rel="stylesheet" href="<%=commonPath%>/pageRc/layui/css/layui.css"
	media="all">
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/common/utils.js"></script>
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/common/msgTool.js"></script>
<script type="text/javascript"
	src="<%=commonPath%>/pageRc/layui/layui.js"></script>

<title>项目奖金计算详细信息</title>

<script>
	$(function(){
	 
 	})
	//注意：选项卡 依赖 element 模块，否则无法进行工能性操作
	layui.use('element', function() {
		var element = layui.element();

		//…
	});
</script>
<jsp:include page="publicMethod.jsp" />
</head>
<body class="layui-main" style="width: 100%;">
		<form id="createMsgForm" name="createMsgForm" class="layui-form"
			action="">
			<blockquote class="layui-elem-quote">项目金额:&nbsp&nbsp&nbsp&nbsp<span >${xmje} </span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp(人月 * 2.5)</blockquote>
			<blockquote class="layui-elem-quote">系统核定金额:&nbsp&nbsp&nbsp&nbsp<span >${xthdje} </span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp(已录入销售系统金额)</blockquote>
			<blockquote class="layui-elem-quote">税金:&nbsp&nbsp&nbsp&nbsp<span >${sj} </span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp(系统核定金额*0.1)</blockquote>
			<div class="layui-form-item" id="dateDiv">
				<div class="layui-inline">
					<table class="layui-table"  lay-even="" lay-skin="line"
						style="text-align: center;width: 100%;">
						<colgroup>
							<col width="8%">
							<col width="5%">
							<col width="5%">
							<col width="8%">
							<col width="8%">
							<col width="10%">
							<col width="50%">
						</colgroup>
						<thead>
							<tr>
								<th>姓名</th>
								<th>月份</th>
								<th>成本</th>
							 	<th>报功天数</th> 
								<th>本月上班天数</th>
								<th>事假总小时</th>
								<th>(报功天数/(上班天数-事假天数)*成本)=人力成本</th>
							</tr>
						</thead>
						<tbody id="detailDiv">

						</tbody>
						 <c:forEach begin="0"   varStatus="status" items="${InfoList}" var="x">
						 <tr align="left">
						 		   <td>${x.userName==undefined?'':x.userName}</td>
								   <td>${x.months==undefined?'':x.months}</td>
								   <td>${x.cost==undefined?'':x.cost}</td>
								   <td>${x.bg==undefined?'':x.bg}</td> 
								   <td>${x.work_day==undefined?'':x.work_day}</td>
								   <td>${x.qjts==undefined?'':x.qjts} 小时</td>
								   <td>(${x.bg==undefined?'0':x.bg}/(${x.work_day==undefined?'':x.work_day}-${x.qjts==undefined?'':x.qjts})*${x.cost==undefined?'':x.cost})=${x.rlcb==undefined?'':x.rlcb}</td>
 						 </tr>
 						 </c:forEach>
					</table>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<div id="laypageDiv"></div>
				</div>
			</div>
		</form>
	</div>
	<!-- <input id="bindStat" type="hidden" name="bindStat" value="">
	<input id="zhifuStat" type="hidden" name="zhifuStat" value="">
	<input id="sunRedio" type="hidden" name="sunRedio" value="0"> -->
</body>
<script type="text/javascript">
var path="<%=commonPath%>";
	var msg = new msgTool();
	layui.use([ 'form', 'layer', 'laytpl', 'laypage', 'laydate' ],
	function() {
	var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
						var form = layui.form(), layer = layui.layer, laypage = layui.laypage, laytpl = layui.laytpl;




});
	function searchByNeedIdAndUserNo(needId,userNo) {
		layer.open({
		 type: 2,
		 title:"详细信息",
		 area: ['95%', '95%	'],
		 scrollbar: false,
		 content: '<%=commonPath%>/page/main/' + needId+ '/searchByNeedIdAndUserNo.do?userNo='+userNo,
		success : function(layero, index) {
		},
		end : function() {
		}
	});
}
</script>
</html>